<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="com.kylin.module.community.orm.Post"  %>
<%@ include file="/common/include/taglibs.jsp"%>
<%@ include file="/common/include/pageExpires.jsp"%>
<center>
帖子详细信息
<br>
<%
	if(request.getAttribute(Constants.KEY_REQUEST_RESULT) != null)
	{
		Post obj = (Post)request.getAttribute(Constants.KEY_REQUEST_RESULT);
 %>
<table width="90%" border="1" align="center" cellpadding="0"
	cellspacing="0" bordercolorlight=#AAAAAA bordercolordark=white>
	<tr>
		<td class='pageTd'>
			语言
		</td>
		<td class='pageTd'>
			<%=UTool.getLanguageName(obj.getLanguage(), Locale
									.getDefault())%>
		</td>
	</tr>
	<tr>
		<td class='pageTd'>
			会员
		</td>
		<td class='pageTd'>
			<%=obj.getUser().getName() %>
		</td>
	</tr>
	<tr>
		<td class='pageTd'>
			标题
		</td>
		<td class='pageTd'>
			<%=obj.getTitle() %>
		</td>
	</tr>
	<tr>
		<td class='pageTd'>
			内容
		</td>
		<td class='pageTd'>
			<%=obj.getContent() %>
		</td>
	</tr>
		<tr>
		<td class='pageTd'>
			日期
		</td>
		<td class='pageTd'>
			<%=JspHelper.getShowDate(obj.getCreatedon())%>
		</td>
	</tr>
</table>
<script>
function doSubmit(cmdValue){
    document.fo1.CMD.value=cmdValue;
    document.fo1.submit();
}
</script>
<form name="fo1" action="/admin/community/managePost.do">
   <input type="hidden" name="searchId" value="<%=request.getParameter("searchId") %>">
   <input type="hidden" name="page" value="<%=request.getParameter("searchId") %>">
   <input type="hidden" name="active" value="<%=request.getParameter("active") %>">
   <input type="hidden" name="CMD" value="">
   <input type="hidden" name="id" value="<%=obj.getId() %>">
<table width="90%" height="28" border="0" align="center">
  <tr>
    <td height="24" align="center"> 
	<%
	    if(Post.WAIT.equals(obj.getActive()) ){
	%>
     	<input type="button" onclick="doSubmit('activationCompany')" value="发布">
    <%
        }
    %>
		<input type="button" onclick="doSubmit('delete')" value="删除"><br>
    </td>
  </tr>
</table>
</form>
<%
	}
	else
	{
		out.println("查看详细信息失败");
	}
 %>
</center>
<form name="fo2" action="/admin/community/managePost.do">
    <input type="hidden" name="CMD" value="searchPost">
    <input type="hidden" name="searchId" value="<%=request.getParameter("searchId") %>">
    <input type="hidden" name="page" value="<%=request.getParameter("searchId") %>">
    <input type="hidden" name="active" value="<%=request.getParameter("active") %>">
	<input type="submit" value="返回">
</form>

